package com.wzapp.sitposture.eshop.view;

import lombok.Data;

import java.io.Serializable;

/**
 * 功能: ${DESCRIPTION}<br/>
 *
 * @author qianglong
 * @version 4.9.0
 * @create 2019-10-23 21:28
 **/
@Data
public class UserOrderDTO implements Serializable{

    /**
     * 买家手机号码
     */
    private String mobile;
    /**
     * 买家名称
     */
    private String account;
    /**
     * 支付总额，单位：元，支付时写入
     */
    private Double payAmount;
    /**
     * 支付方式: 1-支付宝，2-微信，支付时写入
     */
    private Integer payMethod;
    /**
     * 订单号
     */
    private String orderCode;
    /**
     * 第三方支付交易号，支付时写入
     */
    private String payCode;
    /**
     * 支付时间，毫秒，支付时写入
     */
    private Long payTime;

    public UserOrderDTO(String mobile, String account, Double payAmount, Integer payMethod, String orderCode, String payCode, Long payTime) {
        this.mobile = mobile;
        this.account = account;
        this.payAmount = payAmount;
        this.payMethod = payMethod;
        this.orderCode = orderCode;
        this.payCode = payCode;
        this.payTime = payTime;
    }
}
